package com.oracle.log.lintener.service;

import com.oracle.mapper.LogsMapper;
import com.oracle.pojo.Logs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogsService {

    @Autowired
    private LogsMapper logsMapper;

    @Transactional(propagation = Propagation.REQUIRED)
    public void addLogs(Logs logs){
        this.logsMapper.insertSelective(logs);
    }

}
